angular.module('topBarModule', [])
    .directive('appTopBar', function () {
        return {
            restrict: 'AE',
            replace: true,
            scope: {
                title: '=attrTitle',
                sub: '=attrSub',
                link: '@attrLink',
            },
            templateUrl: './src/views/templates/topBar.html',
            link: function (scope, ele, attr) {
                scope.goBack = function () {
                    window.history.back();
                }
            }
        }
    });